package com.ronglian.ucdisk.test;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="parking")
public class Parking {
	@Id public String id; 
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="department_id")
	public Department department;   
	
	public String parkingName;
}
